package com.czh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czh.domain.ResponseResult;
import com.czh.domain.dto.QueryLinkDto;
import com.czh.domain.entity.Link;
import com.czh.domain.vo.LinkPageVo;
import com.czh.domain.vo.LinkShowVo;

import java.util.List;

/**
 * 友链(Link)表服务接口
 *
 * @author makejava
 * @since 2024-03-20 22:54:48
 */
public interface LinkService extends IService<Link> {

    ResponseResult<List<LinkShowVo>> getAllLink();

    ResponseResult<LinkPageVo> pageLink(Integer pageNum, Integer pageSize, QueryLinkDto queryLinkDto);

    ResponseResult<Object> addLink(Link link);

    ResponseResult<LinkShowVo> getLinkById(Long id);

    ResponseResult<Object> updateLink(Link link);

    ResponseResult<Object> deleteLink(Long id);
}

